package thread;

public class ReadThread1 extends Thread{
	Message obj;
	
	public ReadThread1(Message obj){
		this.obj = obj;
	}
	@Override
	public void run(){
		synchronized (obj) {
			try{
				Thread.sleep(100);
			}catch(Exception ex){}
			
			for(char a ='A'; a<='Z';a++){
				obj.setMsg(String.valueOf(a));
			}
			System.out.println("Message에 저장완료");
			obj.status = true;
			obj.notify();
		}
	}
}
